package inc.gome.dynamic.datasource.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import inc.gome.dynamic.datasource.entity.SysUser;
import inc.gome.dynamic.datasource.mapper.MasterMapper;
import inc.gome.dynamic.datasource.service.MasterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/*
*动态数据源标识   处理过程
*1.
*
*
*
* */
@DS("master")
@Service
public class MasterServiceImpl implements MasterService {


    @Autowired
    private MasterMapper masterMapper;


    @Override
    public SysUser fingById(Integer id) {
        return masterMapper.findById(id);
    }

    @Override
    public void updateById(Integer id, String name) {
         masterMapper.updateById(id,name);
    }
}
